from django.conf.urls import url
from fe_api.user import views


urlpatterns = [
    url(r'^login/authorization', views.Authorization.as_view()),
    url(r'^login', views.Login.as_view()),
    url(r'^js_sign$', views.JSAPISignature.as_view()),
    url(r'^info$', views.UserInfo.as_view()),
    url(r'^address_list$', views.UserAddressList.as_view()),
    url(r'^address_list/(?P<address_id>\d+)/default$',
        views.UserAddressDefault.as_view()),
    url(r'^address_list/(?P<address_id>\d+)$',
        views.UserAddressDetail.as_view()),
    url(r'starred/sutra_edition$',
        views.StarSutraEditionList.as_view()),
    url(r'starred/sutra_edition/(?P<sutra_edition_id>\d+)$',
        views.StarSutraEdition.as_view()),
]
